package com.xiaoshuidi.cloud.module.iot.service;


import com.xiaoshuidi.cloud.module.iot.common.ResultModel;
import com.xiaoshuidi.cloud.module.iot.dal.model.AccessTokenRequestWrapperModel;
import com.xiaoshuidi.cloud.module.iot.dal.model.AccessTokenResponseWrapperModel;

/**
 * @author Sky
 * create 2019/04/11
 * email sky.li@ixiaoshuidi.com
 * 水滴token业务
 **/
public interface LocalAccessTokenServcie {

    /**
     * 获取access_token
     *
     * @param accessTokenRequestWrapperModel
     * @return
     * @throws Exception
     */
    ResultModel<AccessTokenResponseWrapperModel> getAccessToken(AccessTokenRequestWrapperModel accessTokenRequestWrapperModel) throws Exception;

    /**
     * 刷新access_token
     *
     * @param accessTokenRequestWrapperModel
     * @return
     * @throws Exception
     */
    ResultModel<AccessTokenResponseWrapperModel> refreshAccessToken(AccessTokenRequestWrapperModel accessTokenRequestWrapperModel) throws Exception;

}
